package com.example.springboottest.student.controller;


import com.example.springboottest.student.entity.StudentNumEntity;
import com.example.springboottest.student.service.StudentNumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/student_num")
public class StudentNumController {

    @Autowired
    StudentNumService studentNumService;
    @RequestMapping("/findNum_s_age")
    public List<StudentNumEntity> findNum_s_age(){
        return studentNumService.findNum_s_age();
    }

    @RequestMapping("/findNum_s_area")
    public List<StudentNumEntity> findNum_s_area(){
        return studentNumService.findNum_s_area();
    }

    @RequestMapping("/findNum_s_political")
    public List<StudentNumEntity> findNum_s_political(){
        return studentNumService.findNum_s_political();
    }

}
